package com.xiongtian.springframework.context;

import com.xiongtian.springframework.beans.Aware;
import com.xiongtian.springframework.beans.BeansException;

/**
 * @Author: xiongtian
 * @CreateTime: 2025-04-02  09:48
 * @Version: 1.0
 * @Description: 上下文感知类
 * 实现该接口的类可以感知到所属的 ApplicationContext
 */

public interface ApplicationContextAware extends Aware {

    /**
     * 设置 ApplicationContext
     *
     * @param applicationContext ApplicationContext
     * @throws BeansException 异常
     */
    void setApplicationContext(ApplicationContext applicationContext) throws BeansException;
}
